import 'dart:convert';
import 'package:safetymonitor/generated/json/base/json_field.dart';
import 'package:safetymonitor/generated/json/get_risk_entity.g.dart';
export 'package:safetymonitor/generated/json/get_risk_entity.g.dart';

@JsonSerializable()
class GetRiskEntity {
	String? createTime = '';
	String? updateTime = '';
	String? creator = '';
	String? updater = '';
	bool? deleted = false;
	int? id = 0;
	int? companyId = 0;
	String? riskName = '';
	int? responsibleDeptId = 0;
	int? responsibleUserId = 0;
	int? longitude = 0;
	int? latitude = 0;
	int? height = 0;
	String? riskTypeCode = '';
	String? riskTypeName = '';
	String? riskLevelCode = '';
	String? riskLevelName = '';
	String? modelCode = '';
	int? riskType = 0;
	String? dangerName = '';
	String? consequence = '';
	String? controlMeasures = '';
	String? managementHierarchy = '';
	String? responsibleDepts = '';
	String? responsibleUsers = '';
	List<dynamic>? deptIds = [];
	List<dynamic>? userIds = [];
	int? nodeId = 0;
	String? workType = '';
	String? workActivity = '';
	String? dangerSource = '';

	GetRiskEntity();

	factory GetRiskEntity.fromJson(Map<String, dynamic> json) => $GetRiskEntityFromJson(json);

	Map<String, dynamic> toJson() => $GetRiskEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}